<?php
/**
 * @version		2.0.1 | $Id: tableplayer.php 114 2009-09-02 12:43:54Z mwi.nor $
 */

// no direct access
defined( '_JEXEC' ) or die();
	$cparams =& JComponentHelper::getParams('com_matchdart');
?>
<div class="contentdescription<?php echo $this->escape($cparams->get('pageclass_sfx')); ?>" align="center">
<?php echo JText::_( 'MD_TABLE_EVENT_PLAYOFFS' ); ?>
</div>

<table class="contentpane<?php echo $cparams->get('pageclass_sfx'); ?>">
	<tr class="sectiontableheader<?php echo $this->escape($cparams->get('pageclass_sfx')); ?>">
    	<td align="center" colspan="4"><?php echo JText::_( 'MD_PLAYER_SCHEDULE_PLAYED' ); ?></td>
    	<td align="center" colspan="4"><?php echo JText::_( 'MD_PLAYER_SCHEDULE_SCHEDULED' ); ?></td>
	</tr>
<?php
    $s_items =& $this->s_items;
    $odd = 0; 
    $tempdate = '';

    foreach($s_items as $s_item) : ?>
		<tr class="sectiontableentry<?php echo $odd . $this->escape($cparams->get('pageclass_sfx')); ?>">
	    	<td><?php echo ($s_item->MatchDate == $tempdate) ? '&nbsp;' :$s_item->MatchDate; ?></td>
	    	<td align="right"><?php echo $s_item->HomePlayerName; ?></td>
	    	<td align="right"><?php echo $s_item->AwayPlayerName; ?></td>
	    	<td></td>
	    	<td></td>
	    	<td></td>
	    	<td></td>
	    	<td></td>
    	</tr>
    	
	<?php 
	$odd = 1 - $odd;
	$tempdate = $s_item->MatchDate;
	endforeach; ?>
	<tfoot>
		<tr class="sectiontablefooter<?php echo $this->escape($cparams->get('pageclass_sfx')); ?>">
			<td colspan="18" class="createdate"><?php echo $this->lastupdate; ?></td>
		</tr>
		<tr>
			<td colspan="18" class="small"><?php echo $this->event->EventTableLegend; ?></td>
		</tr>
	</tfoot>
</table>
